package com.jiangnan.util

import androidx.lifecycle.MutableLiveData
import com.jiangnan.entity.LoginInfo

object CurrentLoginInfo {
    val currentLoginInfo = MutableLiveData<LoginInfo>()

    fun setCurrentLoginInfo(loginInfo: LoginInfo) {
        currentLoginInfo.value = loginInfo
    }

    fun getCurrentLoginInfo(): LoginInfo? {
        return currentLoginInfo.value
    }
}